<template>
  <div class="app">
    <div class="header">
      <div class="title">
        <h2>饿了么</h2>
        <div class="login" @click="$router.push('/login')">登录</div>
      </div>     
      <van-search  shape="round" background="rgb(85, 186, 226)" placeholder="输入商家，商家名称"  input-align="center" />
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.title{
  display: flex;
  justify-content: space-between;
}
.header{
  background-color: rgb(85, 186, 226);
  h2,.login{
    color: white;
    padding: 30px 10px 0 20px ;
    
  }
  .login{
    font-size: 20px;
  }
}
</style>